# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libgnomekbd
pkgver=3.28.1
pkgrel=3
pkgdesc="GNOME keyboard library"
url="https://www.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils"
depends_dev="
	gobject-introspection-dev
	gtk+3.0-dev
	libxau-dev
	libxcb-dev
	libxcomposite-dev
	libxcursor-dev
	libxdmcp-dev
	libxext-dev
	libxi-dev
	libxklavier-dev
	libxml2-dev
	"	
makedepends="$depends_dev meson"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output

	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ffcabfe19289057dd3d7489170093ff1614c3344103ba8ebc6c69f5668d01fea652b7be6c7d5c66291df3a319f975df5cf5167168cd0f60cede022b76bb57cb5  libgnomekbd-3.28.1.tar.xz
"
